﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace BuddHa.Common.CryptoOpex.RSAUtil
{
    public interface IRSAFormatter
    {
        RSA CreateByPublicKey(string key, int size = (int)EnumRSAMode.RSA2);

        RSA CreateByPrivateKey(string key, int size = (int)EnumRSAMode.RSA2);

        RSA ExportPublicKey(RSA privateRSA, RSAParameters? rsaPrivateParameters);
    }
}
